using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BeatingMole
{
    class CGuiMenu
    {
        #region "Variable"
        ContentManager _Content;
        bool IsEnable = true;
        CBusMenu BusMenu;
        #endregion

        #region "Properties"
        public bool IsEnableGui
        {
            set { IsEnable = value; }
            get { return IsEnable; }
        }
        #endregion

        #region "Constructor"
        public CGuiMenu(ContentManager content)
        {
            _Content = content;
            BusMenu = new CBusMenu(_Content);
        }
        #endregion

        #region "Method"
        public void UpdateMenu(GameTime gameTime)
        {
            if (IsEnable == true)
            {
                BusMenu.UpdateMenu(gameTime);
            }
        }

        public void DrawMenu(SpriteBatch spriteBatch)
        {
            if (IsEnable == true)
            {
                BusMenu.DrawMenu(spriteBatch);
            }   
        }
        #endregion
    }
}
